package com.lijing.service;

import com.lijing.model.Activity;

import java.util.List;

public interface ActivityService {
    public List<Activity> selectActivityByClub(Integer cid);
    public List<Activity> selectActivityByClubWidthMember(Integer cid);
    public List<Activity> selectActivityByAuth(Integer minAuth, Integer maxAuth);
    public List<Activity> selectActivityByClubAuth(Integer cid, Integer minAuth, Integer maxAuth);
    public List<Activity> selectActivityByUser(Integer uid, String aname);
    public List<Activity> selectActivityByDate(Integer uid, String earliest, String latest);
    public Activity getActivity(Integer aid);
    public void updateActivity(Activity activity);
    public void joinActivity(Integer aid, Integer uid);
    public void exitActivity(Integer aid, Integer uid);
    public Boolean isJoin(Integer aid, Integer uid);
    public Integer getMemberCount(Activity activity);
    public void deleteActivity(Integer aid);
    public void addActivity(Activity activity);
}
